/*
 * Copyright (c) 2016, Seer Tech co. tld. All rights reserved.
 * SEER TECH PROJECT: cherry. Use is subject to license terms.
 *
 *
 *
 *
 *
 */
package com.mass.core.framework.boot;

import com.mass.core.framework.web.filter.JsCrossDomainFilter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;

public abstract class CherryBootApplication {

    @Value("${cherry.origin-allowed}")
    private String originAllowed;

    @Bean
    public JsCrossDomainFilter jsCrossDomainFilter() {
        return new JsCrossDomainFilter(originAllowed);
    }
}
